<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="ThemeBucket">
  <link rel="shortcut icon" href="#" type="image/png">

  <title>Form Validation</title>

    <div th:include="commons :: comhead"></div>
</head>

<body class="sticky-header">

<section>
    <!-- left side start-->
    <div th:replace="commons :: #left"></div>
    <!-- left side end-->
    
    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <div th:replace="commons :: #search"></div>
        <!-- header section end-->

        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                Form Validation
            </h3>
            <ul class="breadcrumb">
                <li>
                    <a href="#">主页</a>
                </li>
                <li class="active"> 基本信息 </li>
                <li class="active"> 修改信息 </li>
            </ul>
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <section class="panel">
                        <header class="panel-heading">
                            Basic validations
                        </header>
                        <div class="panel-body">
                            <form role="form" class="form-horizontal adminex-form" th:action="@{/editable}" method="post">
                                <div class="form-group has-success">
                                    <label class="col-lg-2 control-label">员工ID</label>
                                    <div class="col-lg-10">
                                        <input type="text" placeholder="" name="id" th:value="${userDto.id}" class="form-control" readonly>
                                    </div>
                                </div>
                                <div class="form-group has-success">
                                    <label class="col-lg-2 control-label">登录昵称</label>
                                    <div class="col-lg-10">
                                        <input type="text" placeholder="" name="username" th:value="${userDto.username}" class="form-control">
                                    </div>
                                </div>
                                <div class="form-group has-error">
                                    <label class="col-lg-2 control-label">真实姓名</label>
                                    <div class="col-lg-10">
                                        <input type="text" placeholder="" name="ename" th:value="${userDto.ename}" class="form-control" readonly>
                                    </div>
                                </div>
                                <div class="form-group has-warning">
                                    <label class="col-lg-2 control-label">邮箱</label>
                                    <div class="col-lg-10">
                                        <input type="text" placeholder="" name="email" th:value="${userDto.email}" class="form-control">
                                    </div>
                                </div>
                                <div class="form-group has-warning">
                                    <label class="col-lg-2 control-label">电话</label>
                                    <div class="col-lg-10">
                                        <input type="text" placeholder="" name="tel" th:value="${userDto.tel}" class="form-control">
                                    </div>
                                </div>
                                <div class="form-group has-warning">
                                    <label class="col-lg-2 control-label">地址</label>
                                    <div class="col-lg-10">
                                        <input type="text" placeholder="" name="address" th:value="${userDto.address}" class="form-control">
                                    </div>
                                </div>
                                <div class="form-group has-warning">
                                    <label class="col-lg-2 control-label">上级编号</label>
                                    <div class="col-lg-10">
                                        <input type="text" placeholder="" name="mgr" th:value="${userDto.mgr}" class="form-control" readonly>
                                    </div>
                                </div>
                                <div class="form-group has-warning">
                                    <label class="col-lg-2 control-label">入职时间</label>
                                    <div class="col-lg-10">
                                        <input type="text" placeholder="" name="hiredate" th:value="${#dates.format(userDto.hiredate,'yyyy/MM/dd HH:mm')}" class="form-control" readonly>
                                    </div>
                                </div>
                                <div class="form-group has-warning">
                                    <label class="col-lg-2 control-label">工资</label>
                                    <div class="col-lg-10">
                                        <input type="text" placeholder="" name="sal" th:value="${userDto.sal}" class="form-control" readonly>
                                    </div>
                                </div>
                                <div class="form-group has-warning">
                                    <label class="col-lg-2 control-label">奖金</label>
                                    <div class="col-lg-10">
                                        <input type="text" placeholder="" name="comm" th:value="${userDto.comm}" class="form-control" readonly>
                                    </div>
                                </div>
                                <div class="form-group has-warning">
                                    <label class="col-lg-2 control-label">部门编号</label>
                                    <div class="col-lg-10">
                                        <input type="text" placeholder="" name="deptno" th:value="${userDto.deptno}" class="form-control" readonly>
                                    </div>
                                </div>
                                <div class="form-group has-warning">
                                    <label class="col-lg-2 control-label">部门名称</label>
                                    <div class="col-lg-10">
                                        <input type="text" placeholder="" name="dname" th:value="${userDto.dname}" class="form-control" readonly>
                                    </div>
                                </div>
                                <div class="form-group has-warning">
                                    <label class="col-lg-2 control-label">部门详情</label>
                                    <div class="col-lg-10">
                                        <input type="text" placeholder="" name="mark" th:value="${userDto.mark}" class="form-control" readonly>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-lg-offset-2 col-lg-10">
                                        <button class="btn btn-primary" type="submit">Submit</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </section>
                </div>
            </div>
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <footer>
            2020 &copy; AdminEx by ThemeBucket </a>
        </footer>
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>

<!-- Placed js at the end of the document so the pages load faster -->
<div th:replace="commons :: js"></div>

<!--common scripts for all pages-->

</body>
</html>
